using System.ComponentModel.DataAnnotations;
using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Write.Api.Application.Command.ERP.MaterialFile
{
    /// <summary>
    /// 删除物料分类命令（逻辑删除）
    /// </summary>
    public class DeleteMaterTypeCommand : IRequest<APIResult<bool>>
    {
        /// <summary>
        /// 物料分类ID
        /// </summary>
        [Required(ErrorMessage = "分类ID不能为空")]
        [Range(1, long.MaxValue, ErrorMessage = "分类ID必须大于0")]
        public long Id { get; set; }
    }
}